home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HITables.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-01
|
20KB
|
558 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HITables.h.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emith.dll: 2.33
*/
#ifndef SOM_HITable_h
#define SOM_HITable_h
/*
* Passthru lines: File: "C.h", "before"
*/
#include <HILists.h>
#include <HITableTypes.h>
#include <som.h>
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* Define the class name as an object type
*/
#ifndef HITable
#define HITable SOMObject
#endif
#include <HIPanels.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMObject
#define SOMObject SOMObject
#endif /* SOMObject */
#ifndef HIWindow
#define HIWindow SOMObject
#endif /* HIWindow */
#ifndef HIEmbeddingPanel
#define HIEmbeddingPanel SOMObject
#endif /* HIEmbeddingPanel */
/*
* End of user-defined types.
*/
#define HITable_MajorVersion 0
#define HITable_MinorVersion 0
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define HITableClassData d
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#ifdef OLDIBMSOMAPISUPPORT
#define HITable_classObj somNewClassReference(HITable)
#define _HITable HITable_classObj
#define HITableCClassData HITableClassData
#define HITableNewClass(major,minor) somNewVersionedClassReference(HITable,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HITableMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/*
* Declare the class data structure
*/
SOMEXTERN struct HITableClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMAny *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitTable;
somMToken AddRows;
somMToken AddColumns;
somMToken DeleteRow;
somMToken DeleteColumn;
somMToken GetExtent;
somMToken SetItemImage;
somMToken GetItemImage;
somMToken SetItemEnabledState;
somMToken GetItemEnabledState;
somMToken SetItemSelectedState;
somMToken GetItemSelectedState;
somMToken GetSelectedItems;
somMToken AddItemCollectionItem;
somMToken GetItemCollectionItemData;
somMToken RemoveItemCollectionItem;
somMToken HitTest;
somMToken GetItemRect;
somMToken NewItemStorage;
somMToken DisposeItemStorage;
} SOMDLINK HITableClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HITable_Class_Source) && !defined(SOM_Module_hitables_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HITableClassData
#endif
#endif
/*
* New macro for HITable
*/
#define HITableNew() somNewObject(HITable)
/*
* New Method: InitTable
*/
typedef OSStatus (SOMLINK *somTD_HITable_InitTable)(HITable *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
HIItemStorage* itemStorage);
#define somMD_HITable_InitTable "::HITable::InitTable"
#define HITable_InitTable(somSelf,ev,identifier,window,bounds,itemStorage) \
(SOM_Resolve(somSelf, HITable, InitTable) \
(somSelf,ev,identifier,window,bounds,itemStorage))
#ifndef SOMGD_InitTable
#if defined _InitTable || defined __InitTable
#undef _InitTable
#undef __InitTable
#define SOMGD_InitTable 1
#else
#define _InitTable HITable_InitTable
#endif /* _InitTable */
#endif /* SOMGD_InitTable */
/*
* New Method: AddRows
*/
typedef OSStatus (SOMLINK *somTD_HITable_AddRows)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
UInt32 numItems);
#define somMD_HITable_AddRows "::HITable::AddRows"
#define HITable_AddRows(somSelf,ev,rowIndex,numItems) \
(SOM_Resolve(somSelf, HITable, AddRows) \
(somSelf,ev,rowIndex,numItems))
#ifndef SOMGD_AddRows
#if defined _AddRows || defined __AddRows
#undef _AddRows
#undef __AddRows
#define SOMGD_AddRows 1
#else
#define _AddRows HITable_AddRows
#endif /* _AddRows */
#endif /* SOMGD_AddRows */
/*
* New Method: AddColumns
*/
typedef OSStatus (SOMLINK *somTD_HITable_AddColumns)(HITable *somSelf, Environment *ev,
HIItemIndex columnIndex,
UInt32 numItems);
#define somMD_HITable_AddColumns "::HITable::AddColumns"
#define HITable_AddColumns(somSelf,ev,columnIndex,numItems) \
(SOM_Resolve(somSelf, HITable, AddColumns) \
(somSelf,ev,columnIndex,numItems))
#ifndef SOMGD_AddColumns
#if defined _AddColumns || defined __AddColumns
#undef _AddColumns
#undef __AddColumns
#define SOMGD_AddColumns 1
#else
#define _AddColumns HITable_AddColumns
#endif /* _AddColumns */
#endif /* SOMGD_AddColumns */
/*
* New Method: DeleteRow
*/
typedef OSStatus (SOMLINK *somTD_HITable_DeleteRow)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex);
#define somMD_HITable_DeleteRow "::HITable::DeleteRow"
#define HITable_DeleteRow(somSelf,ev,rowIndex) \
(SOM_Resolve(somSelf, HITable, DeleteRow) \
(somSelf,ev,rowIndex))
#ifndef SOMGD_DeleteRow
#if defined _DeleteRow || defined __DeleteRow
#undef _DeleteRow
#undef __DeleteRow
#define SOMGD_DeleteRow 1
#else
#define _DeleteRow HITable_DeleteRow
#endif /* _DeleteRow */
#endif /* SOMGD_DeleteRow */
/*
* New Method: DeleteColumn
*/
typedef OSStatus (SOMLINK *somTD_HITable_DeleteColumn)(HITable *somSelf, Environment *ev,
HIItemIndex columnIndex);
#define somMD_HITable_DeleteColumn "::HITable::DeleteColumn"
#define HITable_DeleteColumn(somSelf,ev,columnIndex) \
(SOM_Resolve(somSelf, HITable, DeleteColumn) \
(somSelf,ev,columnIndex))
#ifndef SOMGD_DeleteColumn
#if defined _DeleteColumn || defined __DeleteColumn
#undef _DeleteColumn
#undef __DeleteColumn
#define SOMGD_DeleteColumn 1
#else
#define _DeleteColumn HITable_DeleteColumn
#endif /* _DeleteColumn */
#endif /* SOMGD_DeleteColumn */
/*
* New Method: GetExtent
*/
typedef OSStatus (SOMLINK *somTD_HITable_GetExtent)(HITable *somSelf, Environment *ev,
HIItemIndex* rowIndex,
HIItemIndex* columnIndex);
#define somMD_HITable_GetExtent "::HITable::GetExtent"
#define HITable_GetExtent(somSelf,ev,rowIndex,columnIndex) \
(SOM_Resolve(somSelf, HITable, GetExtent) \
(somSelf,ev,rowIndex,columnIndex))
#ifndef SOMGD_GetExtent
#if defined _GetExtent || defined __GetExtent
#undef _GetExtent
#undef __GetExtent
#define SOMGD_GetExtent 1
#else
#define _GetExtent HITable_GetExtent
#endif /* _GetExtent */
#endif /* SOMGD_GetExtent */
/*
* New Method: SetItemImage
*/
typedef OSStatus (SOMLINK *somTD_HITable_SetItemImage)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
ConstHIImageRef imageRef,
HIAdoptionFlags imageAdoptionFlags);
#define somMD_HITable_SetItemImage "::HITable::SetItemImage"
#define HITable_SetItemImage(somSelf,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags) \
(SOM_Resolve(somSelf, HITable, SetItemImage) \
(somSelf,ev,rowIndex,columnIndex,imageRef,imageAdoptionFlags))
#ifndef SOMGD_SetItemImage
#if defined _SetItemImage || defined __SetItemImage
#undef _SetItemImage
#undef __SetItemImage
#define SOMGD_SetItemImage 1
#else
#define _SetItemImage HITable_SetItemImage
#endif /* _SetItemImage */
#endif /* SOMGD_SetItemImage */
/*
* New Method: GetItemImage
*/
typedef OSStatus (SOMLINK *somTD_HITable_GetItemImage)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
HIImageRef* imageRefPtr);
#define somMD_HITable_GetItemImage "::HITable::GetItemImage"
#define HITable_GetItemImage(somSelf,ev,rowIndex,columnIndex,imageRefPtr) \
(SOM_Resolve(somSelf, HITable, GetItemImage) \
(somSelf,ev,rowIndex,columnIndex,imageRefPtr))
#ifndef SOMGD_GetItemImage
#if defined _GetItemImage || defined __GetItemImage
#undef _GetItemImage
#undef __GetItemImage
#define SOMGD_GetItemImage 1
#else
#define _GetItemImage HITable_GetItemImage
#endif /* _GetItemImage */
#endif /* SOMGD_GetItemImage */
/*
* New Method: SetItemEnabledState
*/
typedef OSStatus (SOMLINK *somTD_HITable_SetItemEnabledState)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
HIItemState enableState);
#define somMD_HITable_SetItemEnabledState "::HITable::SetItemEnabledState"
#define HITable_SetItemEnabledState(somSelf,ev,rowIndex,columnIndex,enableState) \
(SOM_Resolve(somSelf, HITable, SetItemEnabledState) \
(somSelf,ev,rowIndex,columnIndex,enableState))
#ifndef SOMGD_SetItemEnabledState
#if defined _SetItemEnabledState || defined __SetItemEnabledState
#undef _SetItemEnabledState
#undef __SetItemEnabledState
#define SOMGD_SetItemEnabledState 1
#else
#define _SetItemEnabledState HITable_SetItemEnabledState
#endif /* _SetItemEnabledState */
#endif /* SOMGD_SetItemEnabledState */
/*
* New Method: GetItemEnabledState
*/
typedef HIItemState (SOMLINK *somTD_HITable_GetItemEnabledState)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex);
#define somMD_HITable_GetItemEnabledState "::HITable::GetItemEnabledState"
#define HITable_GetItemEnabledState(somSelf,ev,rowIndex,columnIndex) \
(SOM_Resolve(somSelf, HITable, GetItemEnabledState) \
(somSelf,ev,rowIndex,columnIndex))
#ifndef SOMGD_GetItemEnabledState
#if defined _GetItemEnabledState || defined __GetItemEnabledState
#undef _GetItemEnabledState
#undef __GetItemEnabledState
#define SOMGD_GetItemEnabledState 1
#else
#define _GetItemEnabledState HITable_GetItemEnabledState
#endif /* _GetItemEnabledState */
#endif /* SOMGD_GetItemEnabledState */
/*
* New Method: SetItemSelectedState
*/
typedef OSStatus (SOMLINK *somTD_HITable_SetItemSelectedState)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
HIItemState selectedState);
#define somMD_HITable_SetItemSelectedState "::HITable::SetItemSelectedState"
#define HITable_SetItemSelectedState(somSelf,ev,rowIndex,columnIndex,selectedState) \
(SOM_Resolve(somSelf, HITable, SetItemSelectedState) \
(somSelf,ev,rowIndex,columnIndex,selectedState))
#ifndef SOMGD_SetItemSelectedState
#if defined _SetItemSelectedState || defined __SetItemSelectedState
#undef _SetItemSelectedState
#undef __SetItemSelectedState
#define SOMGD_SetItemSelectedState 1
#else
#define _SetItemSelectedState HITable_SetItemSelectedState
#endif /* _SetItemSelectedState */
#endif /* SOMGD_SetItemSelectedState */
/*
* New Method: GetItemSelectedState
*/
typedef HIItemState (SOMLINK *somTD_HITable_GetItemSelectedState)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex);
#define somMD_HITable_GetItemSelectedState "::HITable::GetItemSelectedState"
#define HITable_GetItemSelectedState(somSelf,ev,rowIndex,columnIndex) \
(SOM_Resolve(somSelf, HITable, GetItemSelectedState) \
(somSelf,ev,rowIndex,columnIndex))
#ifndef SOMGD_GetItemSelectedState
#if defined _GetItemSelectedState || defined __GetItemSelectedState
#undef _GetItemSelectedState
#undef __GetItemSelectedState
#define SOMGD_GetItemSelectedState 1
#else
#define _GetItemSelectedState HITable_GetItemSelectedState
#endif /* _GetItemSelectedState */
#endif /* SOMGD_GetItemSelectedState */
/*
* New Method: GetSelectedItems
*/
typedef OSStatus (SOMLINK *somTD_HITable_GetSelectedItems)(HITable *somSelf, Environment *ev,
UInt32 requestedCount,
UInt32* actualCount,
HICellCoordinate* cellArray);
#define somMD_HITable_GetSelectedItems "::HITable::GetSelectedItems"
#define HITable_GetSelectedItems(somSelf,ev,requestedCount,actualCount,cellArray) \
(SOM_Resolve(somSelf, HITable, GetSelectedItems) \
(somSelf,ev,requestedCount,actualCount,cellArray))
#ifndef SOMGD_GetSelectedItems
#if defined _GetSelectedItems || defined __GetSelectedItems
#undef _GetSelectedItems
#undef __GetSelectedItems
#define SOMGD_GetSelectedItems 1
#else
#define _GetSelectedItems HITable_GetSelectedItems
#endif /* _GetSelectedItems */
#endif /* SOMGD_GetSelectedItems */
/*
* New Method: AddItemCollectionItem
*/
typedef OSStatus (SOMLINK *somTD_HITable_AddItemCollectionItem)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
CollectionTag tag,
UInt32 inDataSize,
UInt32* outDataSize,
void* data);
#define somMD_HITable_AddItemCollectionItem "::HITable::AddItemCollectionItem"
#define HITable_AddItemCollectionItem(somSelf,ev,rowIndex,columnIndex,tag,inDataSize,outDataSize,data) \
(SOM_Resolve(somSelf, HITable, AddItemCollectionItem) \
(somSelf,ev,rowIndex,columnIndex,tag,inDataSize,outDataSize,data))
#ifndef SOMGD_AddItemCollectionItem
#if defined _AddItemCollectionItem || defined __AddItemCollectionItem
#undef _AddItemCollectionItem
#undef __AddItemCollectionItem
#define SOMGD_AddItemCollectionItem 1
#else
#define _AddItemCollectionItem HITable_AddItemCollectionItem
#endif /* _AddItemCollectionItem */
#endif /* SOMGD_AddItemCollectionItem */
/*
* New Method: GetItemCollectionItemData
*/
typedef OSStatus (SOMLINK *somTD_HITable_GetItemCollectionItemData)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
CollectionTag tag,
ByteCount dataSizeAllowed,
ByteCount* dataSizeReturned,
void* data);
#define somMD_HITable_GetItemCollectionItemData "::HITable::GetItemCollectionItemData"
#define HITable_GetItemCollectionItemData(somSelf,ev,rowIndex,columnIndex,tag,dataSizeAllowed,dataSizeReturned,data) \
(SOM_Resolve(somSelf, HITable, GetItemCollectionItemData) \
(somSelf,ev,rowIndex,columnIndex,tag,dataSizeAllowed,dataSizeReturned,data))
#ifndef SOMGD_GetItemCollectionItemData
#if defined _GetItemCollectionItemData || defined __GetItemCollectionItemData
#undef _GetItemCollectionItemData
#undef __GetItemCollectionItemData
#define SOMGD_GetItemCollectionItemData 1
#else
#define _GetItemCollectionItemData HITable_GetItemCollectionItemData
#endif /* _GetItemCollectionItemData */
#endif /* SOMGD_GetItemCollectionItemData */
/*
* New Method: RemoveItemCollectionItem
*/
typedef OSStatus (SOMLINK *somTD_HITable_RemoveItemCollectionItem)(HITable *somSelf, Environment *ev,
HIItemIndex rowIndex,
HIItemIndex columnIndex,
CollectionTag tag);
#define somMD_HITable_RemoveItemCollectionItem "::HITable::RemoveItemCollectionItem"
#define HITable_RemoveItemCollectionItem(somSelf,ev,rowIndex,columnIndex,tag) \
(SOM_Resolve(somSelf, HITable, RemoveItemCollectionItem) \
(somSelf,ev,rowIndex,columnIndex,tag))
#ifndef SOMGD_RemoveItemCollectionItem
#if defined _RemoveItemCollectionItem || defined __RemoveItemCollectionItem
#undef _RemoveItemCollectionItem
#undef __RemoveItemCollectionItem
#define SOMGD_RemoveItemCollectionItem 1
#else
#define _RemoveItemCollectionItem HITable_RemoveItemCollectionItem
#endif /* _RemoveItemCollectionItem */
#endif /* SOMGD_RemoveItemCollectionItem */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define HITable_GetEmbeddingParent HIPanel_GetEmbeddingParent
#define HITable_InitPanel HIPanel_InitPanel
#define HITable_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
#define HITable_HasValidContent HIPanel_HasValidContent
#define HITable_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
#define HITable_GetWindow HIObject_GetWindow
#define HITable_GetPort HIObject_GetPort
#define HITable_GetRefLabel HIObject_GetRefLabel
#define HITable_GetCollection HIObject_GetCollection
#define HITable_Init HIObject_Init
#define HITable_Terminate HIObject_Terminate
#define HITable_Clone HIObject_Clone
#define HITable_Release HIObject_Release
#define HITable_GetOwnerCount HIObject_GetOwnerCount
#define HITable_InitFromAERecord HIObject_InitFromAERecord
#define HITable_WriteToAERecord HIObject_WriteToAERecord
#define HITable_CalculateOptimalSize HIObject_CalculateOptimalSize
#define HITable_GetBoundingRect HIObject_GetBoundingRect
#define HITable_SetBoundingRect HIObject_SetBoundingRect
#define HITable_SetPosition HIObject_SetPosition
#define HITable_SetSize HIObject_SetSize
#define HITable_GetUpdateRect HIObject_GetUpdateRect
#define HITable_Enable HIObject_Enable
#define HITable_Disable HIObject_Disable
#define HITable_IsEnabled HIObject_IsEnabled
#define HITable_Show HIObject_Show
#define HITable_Hide HIObject_Hide
#define HITable_IsVisible HIObject_IsVisible
#define HITable_HandleAppleEvent HIObject_HandleAppleEvent
#define HITable_HandleActivate HIObject_HandleActivate
#define HITable_HandleDeactivate HIObject_HandleDeactivate
#define HITable_HandleNavigation HIObject_HandleNavigation
#define HITable_HandleMouseDownInContent HIObject_HandleMouseDownInContent
#define HITable_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
#define HITable_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
#define HITable_HandleMouseUpInContent HIObject_HandleMouseUpInContent
#define HITable_TakeUserInputFocus HIObject_TakeUserInputFocus
#define HITable_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
#define HITable_HasUserInputFocus HIObject_HasUserInputFocus
#define HITable_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
#define HITable_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
#define HITable_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
#define HITable_SetTitle HIObject_SetTitle
#define HITable_GetTitle HIObject_GetTitle
#define HITable_Draw HIObject_Draw
#define HITable_Erase HIObject_Erase
#define HITable_Invalidate HIObject_Invalidate
#define HITable_GetDrawingMode HIObject_GetDrawingMode
#define HITable_SetDrawingMode HIObject_SetDrawingMode
#define HITable_SetBackgroundPattern HIObject_SetBackgroundPattern
#define HITable_GetBackgroundPattern HIObject_GetBackgroundPattern
#define HITable_Cut HIObject_Cut
#define HITable_Copy HIObject_Copy
#define HITable_Paste HIObject_Paste
#define HITable_Clear HIObject_Clear
#define HITable_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
#define HITable_AddStateChangeCallback HIObject_AddStateChangeCallback
#define HITable_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
#define HITable_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
#define HITable_GetNewHIObject HIObject_GetNewHIObject
#define HITable_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
#define HITable_DrawContent HIObject_DrawContent
#define HITable_EraseContent HIObject_EraseContent
#define HITable_TranslatePoint HIObject_TranslatePoint
#define HITable_TranslateRect HIObject_TranslateRect
#define HITable_StateChanged HIObject_StateChanged
#define HITable_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
#define HITable_Verify HIObject_Verify
#define HITable_somInit SOMObject_somInit
#define HITable_somUninit SOMObject_somUninit
#define HITable_somDuplicateReference SOMObject_somDuplicateReference
#define HITable_somCompareReference SOMObject_somCompareReference
#define HITable_somRelease SOMObject_somRelease
#define HITable_somFree SOMObject_somFree
#define HITable_somCanDelete SOMObject_somCanDelete
#define HITable_somGetClass SOMObject_somGetClass
#define HITable_somGetClassName SOMObject_somGetClassName
#define HITable_somGetSize SOMObject_somGetSize
#define HITable_somIsA SOMObject_somIsA
#define HITable_somRespondsTo SOMObject_somRespondsTo
#define HITable_somIsInstanceOf SOMObject_somIsInstanceOf
#define HITable_somDispatch SOMObject_somDispatch
#define HITable_somClassDispatch SOMObject_somClassDispatch
#define HITable_somCastObj SOMObject_somCastObj
#define HITable_somResetObj SOMObject_somResetObj
#define HITable_somPrintSelf SOMObject_somPrintSelf
#define HITable_somDumpSelf SOMObject_somDumpSelf
#define HITable_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_HITable_h */